package com.laobiao.file_netty_lib.content;

import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;

public class LoggerUtil {
	/**
	 * 取日志输出对象
	 * @param clazz
	 * @return
	 */
	public static Logger getLogger(Class clazz) {
		Logger logger=Logger.getLogger(clazz.getName());
		ConsoleHandler consolehandler=new ConsoleHandler();
		consolehandler.setLevel(FileContentApplication.getContentLoggerLevel());
		consolehandler.setLevel(Level.OFF);
		logger.setLevel(FileContentApplication.getContentLoggerLevel());
		return logger;
	}
	
}
